package com.wangshouyu.plugins.mvc.annotation;

import org.springframework.core.annotation.AliasFor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.lang.annotation.*;

/**
 * @author 王守钰
 * @date 2020年11月20日 13:36
 * @description 包装返回结果的RequestMapping和RestController
 */
@Target(ElementType.TYPE)
@Retention(RetentionPolicy.RUNTIME)
@Documented
@RestController
@RequestMapping
@ResponseBodyResult
public @interface RestResultControllerMapping {

    /**
     * 请求地址
     * @return
     */
    @AliasFor(annotation = RequestMapping.class)
    String[] value() default {};
}
